import { ProductEditComponent } from './edit/edit.component';
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ProductAccountComponent } from './account/account.component';
import { ProductCostComponent } from './cost/cost.component';
import { ProductFundComponent } from './fund/fund.component';
import { ProductManagerComponent } from './manager/manager.component';
import { ProductComponent } from './product/product.component';
import { ProductServiceComponent } from './service/service.component';
import { StopfundComponent } from './stopfund/stopfund.component';

const routes: Routes = [
	{
		path: "account",
		component: ProductAccountComponent
	},
	{
		path: "cost",
		component: ProductCostComponent
	},
	{
		path: "fund",
		component: ProductFundComponent
	},
	{
		path: "manager",
		component: ProductManagerComponent
	},
	{
		path: "product",
		component: ProductComponent
	},
	{
		path: "service",
		component: ProductServiceComponent
	},
	{
		path: "stopfund",
		component: StopfundComponent
	},
	{
		path: "edit/:operate/:nFundNo",
		component: ProductEditComponent
	}
];

@NgModule({
	imports: [RouterModule.forChild(routes)],
	exports: [RouterModule]
})
export class ProductInfoRoutingModule { }
